package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;


@Entity
@ApiModel(description = "商品详情")
@Table(name = "tb_goods")
public class Goods {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("商家会员id")
    private Long sellerUserId;
    @ApiModelProperty("商品分类id")
    private Long fGoodsTypeId;
    @ApiModelProperty("商品专区分类id")
    private Long fGoodsZoneTypeId;
    @ApiModelProperty("商品名称")
    private String name;
    @ApiModelProperty("商品图标")
    private String iconPath;
    @ApiModelProperty("描述")
    private String dis;
    @ApiModelProperty("单价")
    private BigDecimal price = BigDecimal.ZERO;
    @ApiModelProperty("默认规格id")
    private Long priceId;
    @ApiModelProperty("类型 PLATFORM(\"平台商品\"),SELLER(\"商家商品\");")
    private String type;
    @ApiModelProperty("发货地址")
    private String sendAddress;
    @ApiModelProperty("运费")
    private BigDecimal freightFee = BigDecimal.ZERO;
    @ApiModelProperty("默认显示秒杀价格")
    private BigDecimal spikePrice = BigDecimal.ZERO;
    @ApiModelProperty("默认显示团购价格")
    private BigDecimal groupPurchasePrice = BigDecimal.ZERO;
    @ApiModelProperty("是否热销产品 0否 1是")
    private Integer isHotSales = Integer.valueOf(0);
    @ApiModelProperty("商品专区类型 0普通 1帮扶 2家园 3链动 4易品 ")
    private Integer goodsZoneType = Integer.valueOf(0);
    @ApiModelProperty("备注")
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSellerUserId() {
        return sellerUserId;
    }

    public void setSellerUserId(Long sellerUserId) {
        this.sellerUserId = sellerUserId;
    }

    public Long getfGoodsTypeId() {
        return fGoodsTypeId;
    }

    public void setfGoodsTypeId(Long fGoodsTypeId) {
        this.fGoodsTypeId = fGoodsTypeId;
    }

    public Long getfGoodsZoneTypeId() {
        return fGoodsZoneTypeId;
    }

    public void setfGoodsZoneTypeId(Long fGoodsZoneTypeId) {
        this.fGoodsZoneTypeId = fGoodsZoneTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIconPath() {
        return iconPath;
    }

    public void setIconPath(String iconPath) {
        this.iconPath = iconPath;
    }

    public String getDis() {
        return dis;
    }

    public void setDis(String dis) {
        this.dis = dis;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Long getPriceId() {
        return priceId;
    }

    public void setPriceId(Long priceId) {
        this.priceId = priceId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSendAddress() {
        return sendAddress;
    }

    public void setSendAddress(String sendAddress) {
        this.sendAddress = sendAddress;
    }

    public BigDecimal getFreightFee() {
        return freightFee;
    }

    public void setFreightFee(BigDecimal freightFee) {
        this.freightFee = freightFee;
    }

    public BigDecimal getSpikePrice() {
        return spikePrice;
    }

    public void setSpikePrice(BigDecimal spikePrice) {
        this.spikePrice = spikePrice;
    }

    public BigDecimal getGroupPurchasePrice() {
        return groupPurchasePrice;
    }

    public void setGroupPurchasePrice(BigDecimal groupPurchasePrice) {
        this.groupPurchasePrice = groupPurchasePrice;
    }

    public Integer getIsHotSales() {
        return isHotSales;
    }

    public void setIsHotSales(Integer isHotSales) {
        this.isHotSales = isHotSales;
    }

    public Integer getGoodsZoneType() {
        return goodsZoneType;
    }

    public void setGoodsZoneType(Integer goodsZoneType) {
        this.goodsZoneType = goodsZoneType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
